# -*- coding: utf-8 -*-
#iscan登录页面
class IcanLoginPage():
    #底部控件
    def __init__(self,driver):
        self.driver = driver
    #选择环境
    def chooseEnvironment(self):
        return self.driver.find_element_by_id('android:id/content')
    #确定
    def confirm(self):
        return self.driver.find_element_by_id('android:id/button1')
    #使用收单员登录，用户名
    def userType(self):
        return self.driver.find_element_by_css_selector("[data-code='AGT']")
    #用户名
    def userName(self):
        return  self.driver.find_element_by_css_selector("[type='text']")
    #密码
    def password(self):
        return  self.driver.find_element_by_css_selector("[type='password']")
    #登录按钮
    def loginButton(self):
        return self.driver.find_element_by_css_selector("[type='button']")

